package wec_wallet.ebo.com.activity.options;

import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import bassproject.ebo.com.ebobass.activity.MyBaseActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import wec_wallet.ebo.com.R;

public class HelpDetailsActivity extends MyBaseActivity {

    @BindView(R.id.actionbar_back)RelativeLayout actionbar_back;
    @BindView(R.id.tv_title)TextView tv_title;
    @BindView(R.id.tv_content)TextView tv_content;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_help_details);
        ButterKnife.bind(this);
        initViews();

    }

    @Override
    public void initViews() {
        Intent intent = getIntent();
        String title = intent.getStringExtra("title");
        String content = intent.getStringExtra("content");
        tv_title.setText(title);
        tv_content.setText(content);
    }

    @Override
    public void onClick(View v) {

    }


    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            onClick_Back();
            return false;
        }
        return super.onKeyDown(keyCode, event);
    }


    //返回键
    @OnClick(R.id.actionbar_back)
    void onClick_Back() {
        finish();
    }

}
